
<?php

$attributes = array('id'       => 'formulario',

	                'name'     => 'formulario',

					'method'   => 'post',

					'onsubmit' => 'return validarFormulario()');

	echo form_open('/alu/alu_parametros/CrearProductoDetalle_',$attributes);
	

?>

<h1 class="tituloppal">Parametrizacion de productos</h1>

<center>

<table width="100%" class="tabla_form">



  
  
  <td colspan="2">
 
<table width="98%" class="tabla_interna">
<tr><th colspan="5">Producto</th></tr>
<tr>



</tr>
<?php 

foreach($producto as $d)
	{
?>
<tr>

    <td colspan="2" align="center"><?=$d['nombre_producto']?></td>
<?php echo form_hidden('id_producto',$d['id_producto']);?>
  </tr>
  <tr>

    <td class="campo">Campos </td><td><? if ($d['altura']='SI'){echo 'altura';}?>&nbsp;,&nbsp;<? if ($d['ancho']='SI'){echo 'ancho';}?>&nbsp;,&nbsp;<? if ($d['naves']='SI'){echo 'naves';}?>&nbsp;,&nbsp;<? if ($d['modulos']='SI'){echo 'modulos';}?> </td>

  </tr>
<?php } ?>

</tr>                              
</table>
<table width="98%" class="tabla_interna">
<tr><th colspan="5">Programar Cantidades</th></tr>
<tr>
<td class="campo_centro">CODIGO</td>
  <td class="campo_centro">DESCRIPCION</td>
<td class="campo_centro">PROGRAMACION</td>



</tr>
<?php 
foreach($producto_detalle as $d)
	{
?>
<tr>
    <td width="10%" class="campo"><?='ALU'.$d['ID']?></td>
    <td width="40%" class="campo"><?=$d['DESCRIPCION']?></td>

    <td width="50%"><?=form_input(array('name' =>$d['ID'],

					'id'=> $d['ID'],

					'class'=>"fValidate['alphanumtilde']",					

					'maxlength'   => '50',

					'size'=> '50'))?></td>

  </tr>
<?php } ?>

</tr>                              
</table>
  </td>
  
  </tr>

  <tr><td colspan="2" align="center">

  <?

$data = array(	'name' => 'bv',

				'id' => 'bv',

				'onclick' => 'regresar()',

				'value' => 'Volver',

				'type' =>'button');

echo form_input($data);

?>

&nbsp;

<?=form_submit('boton', 'Guardar')?>

  </td></tr>

</table>

<?=form_close();?>

</center>